package com.dcits.servicemanagement.service.impl;

import com.dcits.servicemanagement.entity.Test;
import com.dcits.servicemanagement.mapper.TestMapper;
import com.dcits.servicemanagement.service.TestService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Classname TestServiceImpl
 * @Description TODO
 * @Version 1.0.0
 * @Date 2022/4/20 16:01
 * @Created by hejle
 */
@Service
@Slf4j
public class TestServiceImpl implements TestService {

    @Autowired
    private TestMapper testMapper;

    @Override
    public void insert(Test test) {
        log.info("日志测试");
        testMapper.insert(test);
    }

    @Override
    public Test queryById(Integer id) {
        log.info("日志测试");
        Test test = testMapper.selectByPrimaryKey(id);
        return test;
    }
}
